package dk.ahp.opgave2;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;
import android.support.v4.app.NavUtils;

public class Act2 extends Activity {

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_act2);

        Intent i = getIntent();
        Bundle b = i.getExtras();
        String s = b.getString("1");
        
        TextView tv = (TextView) findViewById(R.id.Act2);
        tv.setText(s);
    
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_act2, menu);
        return true;
    }

    
}
